ifeq ($(KERNELRELEASE),)
    KERNELDIR ?=/root/SBC_2416/linux-2.6.39.3
    PWD :=$(shell pwd)
modules:
    $(MAKE) -C $(KERNELDIR) M=$(PWD) modules
modules_install:
    $(MAKE) -C $(KERNELDIR) M=$(PWD) modules_install
clean:
    $(MAKE) -C $(KERNELDIR) M=$(PWD) clean
else
    obj-m := led_driver.o
endif